package cn.yunyichina.provider.pay.wechat.entity._do;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * Created by Lullaby on 2017/4/21.
 */
@Getter
@Setter
public class BaseWechatPayResponseDO implements Serializable {

    private String returnCode;

    private String returnMsg;

    private String appid;

    private String mchId;

    private String deviceInfo;

    private String nonceStr;

    private String sign;

    private String resultCode;

    private String errCode;

    private String errCodeDes;

    private static final String SUCCESS = "SUCCESS";

    public boolean isReturnCodeSuccess() {
        return SUCCESS.equalsIgnoreCase(returnCode);
    }

    public boolean isResultCodeSuccess() {
        return SUCCESS.equalsIgnoreCase(resultCode);
    }

}
